package cn.dust.design.pattern.structural.decorator.v2;

/**
 * @Author: dust
 * @Date: 2019/11/26 19:58
 */
public class Test {

    public static void main(String[] args) {
        ABattercake aBattercake=new Battercake();
        aBattercake=new EggDecorator(aBattercake);
        aBattercake=new SausageDecorator(aBattercake);
        aBattercake=new SausageDecorator(aBattercake);

        System.out.println(aBattercake.getDesc()+"        "+aBattercake.cost());
    }
}
